package yt.kpool.adapter;

import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;


import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;


import java.util.List;

import yt.kpool.R;
import yt.kpool.bean.HomeListBean;

public class MainListAdapter extends ViewHolderRecyclerAdapter<HomeListBean.DataBean.MinerModelListBean> {
    private Context context;


    public MainListAdapter(Context context, List<HomeListBean.DataBean.MinerModelListBean> listData) {
        super(context, listData);
        this.context = context;


    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return inflate(R.layout.item_layout);
    }

    @Override
    public void bindViewDatas(final ViewHolder holder, final HomeListBean.DataBean.MinerModelListBean datas, final int position) {
//        holder.setText(R.id.tv_name, datas.getName());
//        holder.setText(R.id.tv_phone, datas.getPhone());
//
//
//        holder.getView(R.id.iv_callphone).setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View view) {
//                OtherUitl.callPage(context, datas.getPhone());
//            }
//        });
    }
}
